import React from 'react';
import { Switch, Route, Redirect ,Routes} from 'react-router-dom'
import AddPark from './AddPark'
import ParkManagement from './ParkManagement'
const ParkRouter = () => {
    return (
        <Routes>
            <Route path="/" exact element={<ParkManagement/>}></Route>
            <Route path="/park" exact element={<ParkManagement/>}></Route>
            <Route path="/park/addPark" element={<AddPark/>}></Route>
        </Routes>
    );
}

export default ParkRouter;
